<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./css/aui.css" />
	</head>
	<body></body>
	<script type="text/javascript" src="./script/api.js"></script>
	<script type="text/javascript">
		apiready = function() {
			api.parseTapmode();
			//$api.clearStorage();
			var login = $api.getStorage('login');
			if (login == 'true') {
				api.openFrame({
					name : 'main',
					url : 'html/index.html',
					rect : {
						x : 0,
						y : 0,
						w : 'auto',
						h : 'auto'
					}
				});
			} else {
				api.openFrame({
					name : 'main',
					url : 'html/login.html',
					rect : {
						x : 0,
						y : 0,
						w : 'auto',
						h : 'auto'
					}
				});
			}
		};
	</script>
</html>
